#ifndef __LCD128X128__H
#define __LCD128X128__H


#define LCD_HIGHT 160
#define LCD_WIDTH 144
#define LCD_LINE 20

typedef unsigned char uchar;

void clear_screen(void);
void lcd_init(void);
void lcd_address(unsigned char page,unsigned char column);
void transfer_data(unsigned char data);
void display_GB2312_string(uchar page,uchar column,uchar *text);
void display_param_bmp(uchar pos,unsigned char bmpNum,uint8_t ret);
void display_bmp_curve(void);
void bmp_curve(uint16_t *data);
void bmp_line(char page,char column1,char column2,char pos);
void bmp_column(char line1,char line2,char column,char wide);
void bmp_horizontal(char x,char y1,char y2,char start);
void bmp_process(char line,char column);
void bmp_bicycle(char column);
void bmp_bigflag(char column);
void bmp_tick();
void bmp_clearBicycle(uchar pos);

void display_horizontal_line(uint8_t page,uint8_t start_line,uint8_t end_line,uint8_t start_column,uint8_t end_column);
void display_part_clear(uint8_t start_page,uint8_t end_page,uint8_t start_column,uint8_t end_column);
void display_data_num(uchar page,uchar column,uchar *text,uchar index,uchar swidth);
void display_pic_num(uchar page,uchar column,uint8_t index,uint8_t offset);
void display_pic_num_line(uchar page,uchar column,uint32_t index,uint8_t offset);
void display_battery_bmp(uint8_t bmp_page,uint8_t bmp_colum);
void display_charge_bmp(uint8_t bmp_page,uint8_t bmp_colum);
void display_charge_big_bmp(uint8_t bmp_page,uint8_t bmp_colum);
#endif
